import { createStore } from 'vuex'
export default createStore ({
	state:{
		shopId: '',
		token: ''
	},
	getters:{
		
	},
	mutations:{
		// 设置openID
		setShopId(state,payload) {
			state.shopId = payload
			uni.setStorageSync('shopId',payload)
		},
		setToken(state) {
			state.token = payload
			uni.setStorageSync('token',payload.token)
		}
	},
	actions:{
		
	}
})